﻿using Abp.Dependency;
using DHJ.Cost.MessageHandle;
using DHJ.Messages.Cost.RealTime;
using DHJ.Messages.Production;
using NServiceBus;

namespace DHJ.Cost.RealTimeCost
{
    public class CostEstimatedHandler : IHandleMessages<CostEstimated>
    {
        public async System.Threading.Tasks.Task Handle(CostEstimated message, IMessageHandlerContext context)
        {
            try
            {
                var handler = IocManager.Instance.Resolve<MessageHandleAppService>();
                await handler.HandleCostEstimated(message);
            }
            catch (System.Exception ex)
            {
            }

        }
    }
}